<?php

namespace app\miniprogram\controller;

class Collect extends Base {

	protected $process = ['Info', 'tyyh\\Collect'];

	public function save() {
		$this->ajax_process(function($process, $user) {
			return $process->save($user);
		});
	}

	public function private_list() {
		$this->ajax_process(function($process, $user) {
			return $process->private_list($user, function($model) {
				loader()->loadAny('search', 'tyyh\\Collect')->private_list($model);
			});
		});
	}

	public function del() {
		$this->ajax_process(function($process, $user) {
			return $process->delAll($user);
		});
	}
}